  /**
   * Generate time : 2013-06-26 2:09:50
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cb.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCBLongteamPlanDetail 
 * table comment : 中长期计划明细 
 */
public class ZMCBLongteamPlanDetail extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdForeignKey = " ";		/* 主键*/
	private String fdYear = " ";		/* 年份*/
	private Double fdMiningCoal = new Double(0);		/* 采煤量*/
	private Double fdBoringLength = new Double(0);		/* 掘进量*/
	private Double fdDevelopingLength = new Double(0);		/* 开拓量*/
	private Double fdBoringCoal = new Double(0);		/* 掘进煤量*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdForeignKey");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningCoal");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("采煤量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBoringLength");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("掘进量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDevelopingLength");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("开拓量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBoringCoal");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("掘进煤量");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCBLongteamPlanDetail() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdForeignKey - 主键
	 * @return the fdForeignKey
	 */
	public String getFdForeignKey() {
		return this.fdForeignKey;
	}
	
	/**
	 * set the fdForeignKey - 主键
	 */
	public void setFdForeignKey(String fdForeignKey) {
		this.fdForeignKey = fdForeignKey;
	}
	
	/**
	 * get the fdYear - 年份
	 * @return the fdYear
	 */
	public String getFdYear() {
		return this.fdYear;
	}
	
	/**
	 * set the fdYear - 年份
	 */
	public void setFdYear(String fdYear) {
		this.fdYear = fdYear;
	}
	
	/**
	 * get the fdMiningCoal - 采煤量
	 * @return the fdMiningCoal
	 */
	public Double getFdMiningCoal() {
		return this.fdMiningCoal;
	}
	
	/**
	 * set the fdMiningCoal - 采煤量
	 */
	public void setFdMiningCoal(Double fdMiningCoal) {
		this.fdMiningCoal = fdMiningCoal;
	}
	
	/**
	 * get the fdBoringLength - 掘进量
	 * @return the fdBoringLength
	 */
	public Double getFdBoringLength() {
		return this.fdBoringLength;
	}
	
	/**
	 * set the fdBoringLength - 掘进量
	 */
	public void setFdBoringLength(Double fdBoringLength) {
		this.fdBoringLength = fdBoringLength;
	}
	
	/**
	 * get the fdDevelopingLength - 开拓量
	 * @return the fdDevelopingLength
	 */
	public Double getFdDevelopingLength() {
		return this.fdDevelopingLength;
	}
	
	/**
	 * set the fdDevelopingLength - 开拓量
	 */
	public void setFdDevelopingLength(Double fdDevelopingLength) {
		this.fdDevelopingLength = fdDevelopingLength;
	}
	
	/**
	 * get the fdBoringCoal - 掘进煤量
	 * @return the fdBoringCoal
	 */
	public Double getFdBoringCoal() {
		return this.fdBoringCoal;
	}
	
	/**
	 * set the fdBoringCoal - 掘进煤量
	 */
	public void setFdBoringCoal(Double fdBoringCoal) {
		this.fdBoringCoal = fdBoringCoal;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdForeignKey(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdForeignKey")), fdForeignKey));
		setFdYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYear")), fdYear));
		setFdMiningCoal(NumberUtils.toDouble(StringUtils.toString(map.get("fdMiningCoal")), fdMiningCoal));
		setFdBoringLength(NumberUtils.toDouble(StringUtils.toString(map.get("fdBoringLength")), fdBoringLength));
		setFdDevelopingLength(NumberUtils.toDouble(StringUtils.toString(map.get("fdDevelopingLength")), fdDevelopingLength));
		setFdBoringCoal(NumberUtils.toDouble(StringUtils.toString(map.get("fdBoringCoal")), fdBoringCoal));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdForeignKey",StringUtils.toString(fdForeignKey, eiMetadata.getMeta("fdForeignKey")));	
			map.put("fdYear",StringUtils.toString(fdYear, eiMetadata.getMeta("fdYear")));	
			map.put("fdMiningCoal",StringUtils.toString(fdMiningCoal, eiMetadata.getMeta("fdMiningCoal")));	
			map.put("fdBoringLength",StringUtils.toString(fdBoringLength, eiMetadata.getMeta("fdBoringLength")));	
			map.put("fdDevelopingLength",StringUtils.toString(fdDevelopingLength, eiMetadata.getMeta("fdDevelopingLength")));	
			map.put("fdBoringCoal",StringUtils.toString(fdBoringCoal, eiMetadata.getMeta("fdBoringCoal")));	
			
		return map;
	
	}
}